#ifndef RT_H_
# define RT_H_

/*
** Window define
*/
# define WIN_X			(800)
# define WIN_Y			(800)
# define DELAY			(50)

# ifndef M_PI
#	define M_PI			3.1415926535
# endif

typedef struct			s_3f
{
	float				x;
	float				y;
	float				z;
}						t_3f;

/*
** SDL
*/
SDL_Surface				*sdl_context(void);

/*
** Gl
*/
void					gl_init(void);
int						extend_init(void);

/*
** Render
*/
void					render(void);

/*
** Shaders
*/
GLuint					shader_create(const char *file_vertex, const char *file_fragment);
void					shader_send_3f(GLuint program, char *name, float x, float y, float z);

/*
** Error handle
*/
int						error_msg(const char *err, const char *context, const int attrib);
int						errno_msg(const char *err, const int attrib);

#endif /* RT_H_ */